package com.nuoniu.sibanyun.entity.dto;

import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @auther 小啊刚
 * @date 2021-06-28
 */
@Data
@ApiModel(value="采购入库核算", description="采购入库核算")
public class VInOutDto extends BaseEntity {

    @ApiModelProperty(value = "单据日期")
    private LocalDate voucherDate;

    @ApiModelProperty(value = "单据编号")
    private String voucherCode;

    @ApiModelProperty(value = "数据来源")
    private String dataSource;

    @ApiModelProperty(value = "发票号")
    private String invoiceCode;

    @ApiModelProperty(value = "是否钩稽")
    private Integer isAudit;

    @ApiModelProperty(value = "是否核算")
    private Integer isAccounting;

    @ApiModelProperty(value = "明细id")
    private Long detailId;

    @ApiModelProperty(value = "仓库id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "物料id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    private String inventoryName;

    @ApiModelProperty(value = "物料编号")
    private String inventoryCode;

    @ApiModelProperty(value = "物料规格型号")
    private String inventorySpecification;

    @ApiModelProperty(value = "主计量")
    private Integer baseUnit;

    @ApiModelProperty(value = "主计量名称")
    private String baseUnitName;

    @ApiModelProperty(value = "数量")
    private BigDecimal baseQuantity;

    @ApiModelProperty(value = "换算率")
    private BigDecimal unitExchangeRate;

    @ApiModelProperty(value = "辅计量ID")
    private Integer subUnit;

    @ApiModelProperty(value = "辅计量数量")
    private BigDecimal subQuantity;

    @ApiModelProperty(value = "辅计量名称")
    private String subUnitName;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "税额")
    private BigDecimal tax;

    @ApiModelProperty(value = "暂估单价")
    private BigDecimal estimatedPrice;

    @ApiModelProperty(value = "暂估金额")
    private BigDecimal estimatedAmount;

    @ApiModelProperty(value = "发票数量")
    private BigDecimal invoiceQuantity;

    @ApiModelProperty(value = "发票id")
    private Integer invoiceId;

    @ApiModelProperty(value = "发票单价")
    private BigDecimal invoicePrice;
}
